home *** CD-ROM | disk | FTP | other *** search
- global dataSource, installDialog
-
- on popupDialog sourceNode
- mwmDisableControls()
- installDialog = window().new("stepinstall")
- installDialog.fileName = getVolume() & "assets\interface\install"
- installDialog.type = #dialog
- stagePosn = _player.windowList[1].rect
- dialogWidth = installDialog.rect[3] - installDialog.rect[1]
- dialogHeight = installDialog.rect[4] - installDialog.rect[2]
- stageWidth = stagePosn[3] - stagePosn[1]
- stageHeight = stagePosn[4] - stagePosn[2]
- xOrigin = integer(stagePosn[1] + (stageWidth / 2))
- yOrigin = stagePosn[4] - dialogHeight - 13
- xEnd = xOrigin + dialogWidth
- yEnd = yOrigin + dialogHeight
- installDialog.rect = rect(xOrigin, yOrigin, xEnd, yEnd)
- dialogTitle = sourceNode.child[1].attributeValue["title"]
- dialogBody = sourceNode.attributeValue["text"]
- if dialogTitle <> VOID then
- installDialog.movie.sprite(1).setTitle("ABOUT", dialogTitle)
- else
- installDialog.movie.sprite(1).setTitle("ABOUT", "THIS ADVERTISEMENT")
- end if
- currentLink = sourceNode.child[1]
- repeat with linkNum = 1 to currentLink.child.count
- currentStep = currentLink.child[linkNum]
- if (currentStep.attributeValue["label"] <> VOID) and (currentStep.attributeValue["href"] <> VOID) then
- installDialog.movie.sprite(1).setStep(currentStep.attributeValue["text"], currentStep.attributeValue["label"], currentStep.attributeValue["href"])
- next repeat
- end if
- installDialog.movie.sprite(1).setStep(currentStep.attributeValue["text"])
- end repeat
- installDialog.movie.sprite(1).paneContent.doneSetting()
- installDialog.title = "Computer Shopper"
- installDialog.moveToFront()
- installDialog.open()
- end
-
- on stepDialog me, secNum, entNum, linkNum
- mwmDisableControls()
- currentSec = dataSource.findSection(secNum)
- currentLink = currentSec["entries"].child[entNum + 1]["links"].child[linkNum]
- installDialog = window().new("stepinstall")
- installDialog.fileName = getVolume() & "assets\interface\install"
- installDialog.type = #dialog
- stagePosn = _player.windowList[1].rect
- dialogWidth = installDialog.rect[3] - installDialog.rect[1]
- dialogHeight = installDialog.rect[4] - installDialog.rect[2]
- stageHeight = stagePosn[4] - stagePosn[2]
- xOrigin = stagePosn[1] + 7
- yOrigin = stagePosn[4] - dialogHeight - 13
- xEnd = xOrigin + dialogWidth
- yEnd = yOrigin + dialogHeight
- installDialog.rect = rect(xOrigin, yOrigin, xEnd, yEnd)
- dialogTask = currentLink.attributeValue["task"]
- dialogTitle = currentLink.attributeValue["title"]
- if dialogTitle <> VOID then
- installDialog.movie.sprite(1).setTitle(dialogTask, dialogTitle)
- else
- entryTitle = currentSec["entries"].child[entNum + 1].attributeValue["title"]
- installDialog.movie.sprite(1).setTitle("HOW TO INSTALL", toUppercase(entryTitle))
- end if
- repeat with linkNum = 1 to currentLink.child.count
- currentStep = currentLink.child[linkNum]
- if (currentStep.attributeValue["label"] <> VOID) and (currentStep.attributeValue["href"] <> VOID) then
- installDialog.movie.sprite(1).setStep(currentStep.attributeValue["text"], currentStep.attributeValue["label"], currentStep.attributeValue["href"])
- next repeat
- end if
- installDialog.movie.sprite(1).setStep(currentStep.attributeValue["text"])
- end repeat
- installDialog.movie.sprite(1).paneContent.doneSetting()
- installDialog.moveToFront()
- installDialog.open()
- end
-
- on mwmDisableControls
- sprite("Content pane").disableControls()
- sprite("Footer bar2").disableControls()
- end
-
- on mwmEnableControls
- dataSource.setBarColours(sprite("Content pane").sections.selectedIndex)
- sprite("Content pane").enableControls()
- sprite("Footer bar2").enableControls()
- end
-
- on mwmEnableControlsCreditsSelected
- dataSource.setBarColours(sprite("Content pane").sections.selectedIndex)
- sprite("Content pane").enableControls()
- sprite("Footer bar2").enableControlsCreditsSelected()
- end
-
- on resetFooter
- sprite("Footer bar2").resetFooter()
- end
-
- on resetCentre
- sprite("Centre pane").resetPane()
- end
-